package org.jeecg.modules.activities.service.impl;

import org.jeecg.modules.activities.entity.FhActive;
import org.jeecg.modules.activities.entity.FhChallenroll;
import org.jeecg.modules.activities.mapper.FhActiveMapper;
import org.jeecg.modules.activities.mapper.FhChallenrollMapper;
import org.jeecg.modules.activities.service.IFhActiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 日程活动
 * @Author: jeecg-boot
 * @Date:   2024-07-16
 * @Version: V1.0
 */
@Service
public class FhActiveServiceImpl extends ServiceImpl<FhActiveMapper, FhActive> implements IFhActiveService {

    @Autowired
    private FhActiveMapper fhActiveMapper;

    /**
     * 通过userId查询数据
     *
     * @param userId 主表id
     * @return List<FhChallenroll>
     */
    @Override
    public List<FhActive> selectAppList(String userId){
        return fhActiveMapper.selectAppList(userId);
    }

    @Override
    public List<FhActive> selectListForCheckDuplicateEnroll(Map<String, Object> columnMap){
        return fhActiveMapper.selectListForCheckDuplicateEnroll(columnMap);
    }

}
